package com.dbq.fast.business.login.bean;

import java.io.Serializable;


public class FbProfile implements Serializable {
    /**
     * data : {"url":"https://scontent.xx.fbcdn.net/hprofile-xfa1/v/t1.0-1/c15.0.50.50/p50x50/xxxx.jpg?oh=xxxx&oe=xxx","is_silhouette":true}
     */

    private PictureEntity picture;
    /**
     * picture : {"data":{"url":"https://scontent.xx.fbcdn.net/hprofile-xfa1/v/t1.0-1/c15.0.50.50/p50x50/xxxx.jpg?oh=xxxxx&oe=xxxx","is_silhouette":true}}
     * id : xxxxx
     * first_name : x
     * birthday : 01/15/1999
     * timezone : 8
     * email : xxxxx@51master.tv
     * locale : zh_CN
     * link : https://www.facebook.com/app_scoped_user_id/xxxxx/
     * name : xx
     * last_name : x
     * gender : male
     * updated_time : 2016-04-20T09:56:30+0000
     * age_range : {"min":13,"max":17}
     */
    private String id;
    private String first_name;
    private String birthday;
    private double timezone;
    private String email;
    private String locale;
    private String link;
    private String name;
    private String last_name;
    private String gender;
    private String updated_time;
    /**
     * min : 13
     * max : 17
     */

    private AgeRangeEntity age_range;

    public PictureEntity getPicture() {
        return picture;
    }

    public void setPicture(PictureEntity picture) {
        this.picture = picture;
    }

    /**
     * ps:此id为facebookid
     *
     * @return id
     */
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFirst_name() {
        return first_name;
    }

    public void setFirst_name(String first_name) {
        this.first_name = first_name;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public double getTimezone() {
        return timezone;
    }

    public void setTimezone(double timezone) {
        this.timezone = timezone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLocale() {
        return locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLast_name() {
        return last_name;
    }

    public void setLast_name(String last_name) {
        this.last_name = last_name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getUpdated_time() {
        return updated_time;
    }

    public void setUpdated_time(String updated_time) {
        this.updated_time = updated_time;
    }

    public AgeRangeEntity getAge_range() {
        return age_range;
    }

    public void setAge_range(AgeRangeEntity age_range) {
        this.age_range = age_range;
    }

    public static class PictureEntity implements Serializable {
        /**
         * url : https://scontent.xx.fbcdn.net/hprofile-xfa1/v/t1.0-1/c15.0.50.50/p50x50/10354686_10150004552801856_220367501106153455_n.jpg?oh=1b2f428689c126f80a083e30205ef68b&oe=57AD5F2F
         * is_silhouette : true
         */

        private DataEntity data;

        public DataEntity getData() {
            return data;
        }

        public void setData(DataEntity data) {
            this.data = data;
        }

        public static class DataEntity implements Serializable{
            private String url;
            private boolean is_silhouette;

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public boolean isIs_silhouette() {
                return is_silhouette;
            }

            public void setIs_silhouette(boolean is_silhouette) {
                this.is_silhouette = is_silhouette;
            }
        }

        @Override
        public String toString() {
            return "PictureEntity{" +
                    "data=" + data +
                    '}';
        }
    }

    public static class AgeRangeEntity implements Serializable{
        private int min;
        private int max;

        public int getMin() {
            return min;
        }

        public void setMin(int min) {
            this.min = min;
        }

        public int getMax() {
            return max;
        }

        public void setMax(int max) {
            this.max = max;
        }

        @Override
        public String toString() {
            return "AgeRangeEntity{" +
                    "min=" + min +
                    ", max=" + max +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "FbProfile{" +
                "picture=" + picture +
                ", id='" + id + '\'' +
                ", first_name='" + first_name + '\'' +
                ", birthday='" + birthday + '\'' +
                ", timezone=" + timezone +
                ", email='" + email + '\'' +
                ", locale='" + locale + '\'' +
                ", link='" + link + '\'' +
                ", name='" + name + '\'' +
                ", last_name='" + last_name + '\'' +
                ", gender='" + gender + '\'' +
                ", updated_time='" + updated_time + '\'' +
                ", age_range=" + age_range +
                '}';
    }
}
